package com.xiao.tripmateai.model.dto.chat;

import lombok.Data;
import com.xiao.tripmateai.model.domain.Conversation;

import java.util.List;

/**
 * 游标查询历史对话记录 返回响应类
 */
@Data
public class UserChatCursorPageResponse {
    private List<Conversation> conversations;
    private String nextCursor; // 下一页的游标
    private boolean hasNext; // 是否还有下一页

    public UserChatCursorPageResponse(List<Conversation> conversations, String nextCursor, boolean hasNext) {
        this.conversations = conversations;
        this.nextCursor = nextCursor;
        this.hasNext = hasNext;
    }
}